package app.system.service.impl;

import app.system.entity.SysComment;
import app.system.mapper.SysCommentMapper;
import app.system.service.SysCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SysCommentServiceImpl implements SysCommentService {
    @Autowired
    private SysCommentMapper commentMapper;
    @Override
    public int saveComment(SysComment sysComment) {
        return commentMapper.saveComment(sysComment);
    }

    @Override
    public List<SysComment> secletCommentByTage(SysComment sysComment) {
        return commentMapper.secletCommentByTage(sysComment);
    }

    @Override
    public int updateCommentByCommentId(SysComment sysComment) {
        return commentMapper.updateCommentByCommentId(sysComment);
    }

    @Override
    public int deleteCommentByCommentId(SysComment sysComment) {
        return commentMapper.deleteCommentByCommentId(sysComment);
    }
}
